package com.ts.ischool.dao;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import com.ts.ischool.pojo.CalendarBean;

public interface CalendarDao {
	
	public List<CalendarBean> queryCalendars(Date qstart, Date qend, String userId);

	public Long addCalendar(CalendarBean c);
	
	public void addCalendarBatch(List<CalendarBean> list) throws SQLException;
	
	public CalendarBean getCalendar(String id);
	
	public void updateCalendar(CalendarBean c);
	
	public void deleteCalendar(String id);
	
	public void deleteCalendarBatch(String[] ids);
	
	public void deleteCalendarByGoogleId(String id);
	
	public List<CalendarBean> findCalendarsByIds(String[] ids);
	
	public void updateCalendarBatch(List<CalendarBean> list) throws SQLException;

	public CalendarBean getCalendarByGoogleId(String id);

	public List<CalendarBean> findCalendarsByUserId(Long id);
}
